/**
 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package fr.smile.liferay.portlet.news.service;

/**
 * <p>
 * This class is a wrapper for {@link NewsFlagLocalService}.
 * </p>
 *
 * @author    Brian Wing Shun Chan
 * @see       NewsFlagLocalService
 * @generated
 */
public class NewsFlagLocalServiceWrapper implements NewsFlagLocalService {
	public NewsFlagLocalServiceWrapper(
		NewsFlagLocalService newsFlagLocalService) {
		_newsFlagLocalService = newsFlagLocalService;
	}

	/**
	* Adds the news flag to the database. Also notifies the appropriate model listeners.
	*
	* @param newsFlag the news flag to add
	* @return the news flag that was added
	* @throws SystemException if a system exception occurred
	*/
	public fr.smile.liferay.portlet.news.model.NewsFlag addNewsFlag(
		fr.smile.liferay.portlet.news.model.NewsFlag newsFlag)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsFlagLocalService.addNewsFlag(newsFlag);
	}

	/**
	* Creates a new news flag with the primary key. Does not add the news flag to the database.
	*
	* @param flagId the primary key for the new news flag
	* @return the new news flag
	*/
	public fr.smile.liferay.portlet.news.model.NewsFlag createNewsFlag(
		long flagId) {
		return _newsFlagLocalService.createNewsFlag(flagId);
	}

	/**
	* Deletes the news flag with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param flagId the primary key of the news flag to delete
	* @throws PortalException if a news flag with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public void deleteNewsFlag(long flagId)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		_newsFlagLocalService.deleteNewsFlag(flagId);
	}

	/**
	* Deletes the news flag from the database. Also notifies the appropriate model listeners.
	*
	* @param newsFlag the news flag to delete
	* @throws SystemException if a system exception occurred
	*/
	public void deleteNewsFlag(
		fr.smile.liferay.portlet.news.model.NewsFlag newsFlag)
		throws com.liferay.portal.kernel.exception.SystemException {
		_newsFlagLocalService.deleteNewsFlag(newsFlag);
	}

	/**
	* Performs a dynamic query on the database and returns the matching rows.
	*
	* @param dynamicQuery the dynamic query to search with
	* @return the matching rows
	* @throws SystemException if a system exception occurred
	*/
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsFlagLocalService.dynamicQuery(dynamicQuery);
	}

	/**
	* Performs a dynamic query on the database and returns a range of the matching rows.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param dynamicQuery the dynamic query to search with
	* @param start the lower bound of the range of model instances to return
	* @param end the upper bound of the range of model instances to return (not inclusive)
	* @return the range of matching rows
	* @throws SystemException if a system exception occurred
	*/
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException {
		return _newsFlagLocalService.dynamicQuery(dynamicQuery, start, end);
	}

	/**
	* Performs a dynamic query on the database and returns an ordered range of the matching rows.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param dynamicQuery the dynamic query to search with
	* @param start the lower bound of the range of model instances to return
	* @param end the upper bound of the range of model instances to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching rows
	* @throws SystemException if a system exception occurred
	*/
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsFlagLocalService.dynamicQuery(dynamicQuery, start, end,
			orderByComparator);
	}

	/**
	* Counts the number of rows that match the dynamic query.
	*
	* @param dynamicQuery the dynamic query to search with
	* @return the number of rows that match the dynamic query
	* @throws SystemException if a system exception occurred
	*/
	public long dynamicQueryCount(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsFlagLocalService.dynamicQueryCount(dynamicQuery);
	}

	/**
	* Gets the news flag with the primary key.
	*
	* @param flagId the primary key of the news flag to get
	* @return the news flag
	* @throws PortalException if a news flag with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public fr.smile.liferay.portlet.news.model.NewsFlag getNewsFlag(long flagId)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		return _newsFlagLocalService.getNewsFlag(flagId);
	}

	/**
	* Gets a range of all the news flags.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of news flags to return
	* @param end the upper bound of the range of news flags to return (not inclusive)
	* @return the range of news flags
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<fr.smile.liferay.portlet.news.model.NewsFlag> getNewsFlags(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsFlagLocalService.getNewsFlags(start, end);
	}

	/**
	* Gets the number of news flags.
	*
	* @return the number of news flags
	* @throws SystemException if a system exception occurred
	*/
	public int getNewsFlagsCount()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsFlagLocalService.getNewsFlagsCount();
	}

	/**
	* Updates the news flag in the database. Also notifies the appropriate model listeners.
	*
	* @param newsFlag the news flag to update
	* @return the news flag that was updated
	* @throws SystemException if a system exception occurred
	*/
	public fr.smile.liferay.portlet.news.model.NewsFlag updateNewsFlag(
		fr.smile.liferay.portlet.news.model.NewsFlag newsFlag)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsFlagLocalService.updateNewsFlag(newsFlag);
	}

	/**
	* Updates the news flag in the database. Also notifies the appropriate model listeners.
	*
	* @param newsFlag the news flag to update
	* @param merge whether to merge the news flag with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
	* @return the news flag that was updated
	* @throws SystemException if a system exception occurred
	*/
	public fr.smile.liferay.portlet.news.model.NewsFlag updateNewsFlag(
		fr.smile.liferay.portlet.news.model.NewsFlag newsFlag, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsFlagLocalService.updateNewsFlag(newsFlag, merge);
	}

	public fr.smile.liferay.portlet.news.model.NewsFlag addFlag(long userId,
		long entryId, int value)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsFlagLocalService.addFlag(userId, entryId, value);
	}

	public void deleteFlag(long flagId)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		_newsFlagLocalService.deleteFlag(flagId);
	}

	public void deleteFlags(long entryId)
		throws com.liferay.portal.kernel.exception.SystemException {
		_newsFlagLocalService.deleteFlags(entryId);
	}

	public fr.smile.liferay.portlet.news.model.NewsFlag getFlag(long userId,
		long entryId, int value)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		return _newsFlagLocalService.getFlag(userId, entryId, value);
	}

	public NewsFlagLocalService getWrappedNewsFlagLocalService() {
		return _newsFlagLocalService;
	}

	private NewsFlagLocalService _newsFlagLocalService;
}